import { http } from "../../http";

// 库存管理-归还单分页查询
export function listReturnPage(data: object) {
  return http({ url: "/loan/listPage", data });
}
//归还单删除
export function DeleteReturn(data: object) {
  return http({ url: "/loan/delete", data });
}
/**************************归还单新增详情页***********************/
// 物资管理分页
export function goodsListPage(data: object) {
  return http({ url: "/api/listGodownGoodsPage", data });
}
// 归还单新增
export function AddReturn(data: object) {
  return http({ url: "/loan/save", data });
}
// 归还单修改
export function UpdateReturn(data: object) {
  return http({ url: "/loan/update", data });
}
//归还单查询详情
export function getReturnDetail(data: object) {
  return http({ url: "/loan/find", data });
}
//归还单提交
export function submitReturnList(data: object) {
  return http({ url: "/loan/ReturnSubmitRecond", data });
}

// 批量添加归还单物资
export function saveBatchReturnGoods(data: object) {
  return http({ url: "/loan/addGoods", data });
}
// 归还单物资列表
export function getAddGoodsList(data: object) {
  return http({ url: "/loan/listGoodsPage", data });
}
